import request from '@/utils/request'
//用户登录
export function login(data) {
  return request({
    url: '/sys/admin/login',
    method: 'post',
    data
  })
}


export function getInfo(data) {
  return request({
    url: '/api/menu/load-sys-menu-with-system-code',
    method: 'post',
    params: data
  })
}
//退出
export function logout(data) {
  return request({
    url: '/sys/admin/logout',
    method: 'post',
    data
  })
}
// 更新密码
export function updatePws(data) {
  return request({
    url: '/sys/admin/updatePws',
    method: 'post',
    data
  })
}
// 校验旧密码
export function modifyPws(data) {
  return request({
    url: '/sys/admin/modifyPws',
    method: 'post',
    data
  })
}
